<%@page import="org.teacup.eightdays.model.*" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/commons/taglibs.jsp" %>

	<input type="hidden" id="productId" name="productId" value="${product.productId}"/>
	
	<p>
		<label><span class="required">*</span><%=Product.ALIAS_NAME%>:</label>
		<form:input path="product.name" id="name" cssClass="required  text-input medium-input " maxlength="255" />
		<font color='red'><form:errors path="name"/></font>
	</p>
	<p>
		<label><%=Product.ALIAS_PRODUCT_TYPE_ID%>:</label>
		<form:select path="product.productTypeId" items="${typeList }" itemLabel="name" itemValue="productTypeId" cssClass="text-input medium-input">
		</form:select>
		<font color='red'><form:errors path="productTypeId"/></font>
	</p>
	<p>
		<label><span class="required">*</span><%=Product.ALIAS_CODE%>:</label>
		<form:input path="product.code" id="code" cssClass="required  text-input medium-input " maxlength="100" />
		<font color='red'><form:errors path="code"/></font>
	</p>
	
	<p>
		<label><span class="required">*</span><%=Product.ALIAS_PRODUCT_DESCRIBE%>:</label>
		<form:textarea path="product.productDescribe" id="textarea" cssClass="text-input textarea wysiwyg" cols="79" rows="15"/>
		<font color='red'><form:errors path="productDescribe"/></font>
	</p>
	
	<p>
		<label><%=Product.ALIAS_PRODUCING_AREA%>:</label>
		<form:input path="product.producingArea" id="producingArea" cssClass=" text-input medium-input " maxlength="255" />
		<font color='red'><form:errors path="producingArea"/></font>
	</p>
	
	<p>
		<label><%=Product.ALIAS_PRODUCTION_CERTIFICATE%>:</label>
		<form:input path="product.productionCertificate" id="productionCertificate" cssClass=" text-input medium-input " maxlength="255" />
		<font color='red'><form:errors path="productionCertificate"/></font>
	</p>
	
	<p>
		<label><%=Product.ALIAS_PRODUCT_STANDARD_CODE%>:</label>
		<form:input path="product.productStandardCode" id="productStandardCode" cssClass=" text-input medium-input " maxlength="255" />
		<font color='red'><form:errors path="productStandardCode"/></font>
	</p>
	
	<p>
		<label><%=Product.ALIAS_WORKS_INITIALS%>:</label>
		<form:input path="product.worksInitials" id="worksInitials" cssClass=" text-input medium-input " maxlength="500" />
		<font color='red'><form:errors path="worksInitials"/></font>
	</p>
	
	<p>
		<label><%=Product.ALIAS_WORKS_ADDRESS%>:</label>
		<form:input path="product.worksAddress" id="worksAddress" cssClass=" text-input medium-input " maxlength="500" />
		<font color='red'><form:errors path="worksAddress"/></font>
	</p>
	
	<p>
		<label><%=Product.ALIAS_BURDEN_SHEET%>:</label>
		<form:input path="product.burdenSheet" id="burdenSheet" cssClass=" text-input medium-input " maxlength="1000" />
		<font color='red'><form:errors path="burdenSheet"/></font>
	</p>
	
	<p>
		<label><%=Product.ALIAS_STORE%>:</label>
		<form:input path="product.store" id="store" cssClass=" text-input medium-input " maxlength="255" />
		<font color='red'><form:errors path="store"/></font>
	</p>
	
	<p>
		<label><%=Product.ALIAS_QUALITY_GUARANTEE_PERIOD%>:</label>
		<form:input path="product.qualityGuaranteePeriod" id="qualityGuaranteePeriod" cssClass=" text-input medium-input " maxlength="255" />
		<font color='red'><form:errors path="qualityGuaranteePeriod"/></font>
	</p>
	
	<p>
		<label><%=Product.ALIAS_ADDITIVE%>:</label>
		<form:input path="product.additive" id="additive" cssClass=" text-input medium-input " maxlength="255" />
		<font color='red'><form:errors path="additive"/></font>
	</p>
	
	<p>
		<label><%=Product.ALIAS_PACKAGING%>:</label>
		<form:input path="product.packaging" id="packaging" cssClass=" text-input medium-input " maxlength="255" />
		<font color='red'><form:errors path="packaging"/></font>
	</p>
	
	<p>
		<label><%=Product.ALIAS_BRAND%>:</label>
		<form:input path="product.brand" id="brand" cssClass=" text-input medium-input " maxlength="255" />
		<font color='red'><form:errors path="brand"/></font>
	</p>
	
	<p>
		<label><%=Product.ALIAS_CATENA%>:</label>
		<form:input path="product.catena" id="catena" cssClass=" text-input medium-input " maxlength="255" />
		<font color='red'><form:errors path="catena"/></font>
	</p>
	
	<p>
		<label><%=Product.ALIAS_STANDARD%>:</label>
		<form:input path="product.standard" id="standard" cssClass=" text-input medium-input " maxlength="100" />
		<font color='red'><form:errors path="standard"/></font>
	</p>
	
	<p>
		<label><%=Product.ALIAS_BAR_CODE%>:</label>
		<form:input path="product.barCode" id="barCode" cssClass=" text-input medium-input " maxlength="255" />
		<font color='red'><form:errors path="barCode"/></font>
	</p>
	
	<p>
		<label><%=Product.ALIAS_WEIGHT%>:</label>
		<form:input path="product.weight" id="weight" cssClass=" text-input medium-input " maxlength="255" />
		<font color='red'><form:errors path="weight"/></font>
	</p>
	
	<p>
		<label><%=Product.ALIAS_TYPE%>:</label>
		<form:input path="product.type" id="type" cssClass=" text-input medium-input " maxlength="255" />
		<font color='red'><form:errors path="type"/></font>
	</p>
	
	<p>
		<label><span class="required">*</span><%=Product.ALIAS_COST%>:</label>
		<form:input path="product.cost" id="cost" cssClass="required validate-number  text-input medium-input " maxlength="12" />
		<font color='red'><form:errors path="cost"/></font>
	</p>
	
	<p>
		<label><span class="required">*</span><%=Product.ALIAS_PRICE%>:</label>
		<form:input path="product.price" id="price" cssClass="required validate-number  text-input medium-input " maxlength="12" />
		<font color='red'><form:errors path="price"/></font>
	</p>
	
	<p>
		<label><span class="required">*</span><%=Product.ALIAS_STOCK%>:</label>
		<form:input path="product.stock" id="stock" cssClass="required validate-integer max-value-2147483647 text-input medium-input " maxlength="10" />
		<font color='red'><form:errors path="stock"/></font>
	</p>
	
	<p>
		<label><%=Product.ALIAS_STOCK_TEMP%>:</label>
		<form:input path="product.stockTemp" id="stockTemp" cssClass="validate-integer max-value-2147483647 text-input medium-input " maxlength="10" />
		<font color='red'><form:errors path="stockTemp"/></font>
	</p>
	
	<p>
		<label><span class="required">*</span><%=Product.ALIAS_SALES_VOLUME%>:</label>
		<form:input path="product.salesVolume" id="salesVolume" cssClass="required validate-integer max-value-2147483647 text-input medium-input " maxlength="10" />
		<font color='red'><form:errors path="salesVolume"/></font>
	</p>
	
	<p>
		<label><span class="required">*</span><%=Product.ALIAS_SALES_VOLUME_SHAM%>:</label>
		<form:input path="product.salesVolumeSham" id="salesVolumeSham" cssClass="required validate-integer max-value-2147483647 text-input medium-input " maxlength="10" />
		<font color='red'><form:errors path="salesVolumeSham"/></font>
	</p>
	
	<p>
		<label><%=Product.ALIAS_OFF_SHARE_TIME%>:</label>
		<input value="${product.offShareTimeString}" onclick="WdatePicker({dateFmt:'<%=Product.FORMAT_OFF_SHARE_TIME%>'})" id="offShareTimeString" name="offShareTimeString"  maxlength="0" class=" text-input medium-input" />
		<font color='red'><form:errors path="offShareTime"/></font>
	</p>
	
	<p>
		<label><%=Product.ALIAS_ON_SHARE_TIME%>:</label>
		<input value="${product.onShareTimeString}" onclick="WdatePicker({dateFmt:'<%=Product.FORMAT_ON_SHARE_TIME%>'})" id="onShareTimeString" name="onShareTimeString"  maxlength="0" class=" text-input medium-input" />
		<font color='red'><form:errors path="onShareTime"/></font>
	</p>
